﻿using Architeture.Domain;
using Architeture.Domain.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.Service
{
    public interface IMenuSerivice
    {
        Task<int> MennuAdd(MenuInfo a);
        Task<MenuPage> GetMenuAll(int pageindex, int pagesize, string? name);
        Task<MenuInfo> GetMenuByid(int id);
        Task<int> MenuDelete(MenuInfo a);
        Task<int> MenuInfoDelis(int id);
        Task<int> DeleteMenu(int id);
        Task<List<mentumns>> GetMenuTree(int mid = 0);

        //测试多少个父级
        Task<int> GetInfoList(int id);


        Task<List<MenuRoleTreeDto>> GetRoleMenuTree(int mid = 0);
        Task<List<MenuInfo>> GetSelectMenu();
    }
}
